package day1;

/**
 * @author oldliu
 * @since 1.0
 */
public class MathTest {
    public static void main(String[] args) {
        int a=23,b=9;//定义多个变量，用逗号隔开。
        int c=a%b;
        int f=a/b;
        System.out.println("f="+f);
        System.out.println("c="+c);
        System.out.println(">>>>>>>>>>>>>>>>>>>");
        double d=12.5;
        double d1=4.3;
        double d2=d%d1;
        double d3=d/d1;
        System.out.println("D2="+d2);
        System.out.println("D3="+d3);
        d1++;//一元运算符
        d--;
        System.out.println("d1="+d1);
        System.out.println("d="+d);
        //d1=d1+3;
        d1+=3;
        System.out.println("D1="+d1);
        d1-=1;

    }
}
